﻿using FCT551.Base;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;

namespace FCT551.Models
{
    /// <summary>
    /// 消息框item模板类
    /// </summary>
    public class MsgInfo : NotifyPorperChanged
    {
        private string timestamp;

        /// <summary>
        /// 时间戳
        /// </summary>
        public string Timestamp
        {
            set
            {
                timestamp = value;
                this.SetProperty();
            }
            get { return timestamp; }
        }

        private string message;

        /// <summary>
        /// 日志信息
        /// </summary>
        public string Message
        {
            set
            {
                message = value;
                this.SetProperty();
            }
            get { return message; }
        }

        private SolidColorBrush color;

        /// <summary>
        /// 日志颜色
        /// </summary>
        public SolidColorBrush Color
        {
            set
            {
                color = value;
                this.SetProperty();
            }
            get { return color; }
        }

        private FontWeight fontWeight;

        /// <summary>
        /// 日志加粗
        /// </summary>
        public FontWeight FontWeight
        {
            set
            {
                fontWeight = value;
                this.SetProperty();
            }
            get { return fontWeight; }
        }
    }

    /// <summary>
    /// 日志等级，配合MyLog使用
    /// </summary>
    public enum LogLevel
    {
        Info,
        Error,
        Debug
    }
}